<!DOCTYPE html>
<html>
<script src="./resources/test-runner-paint-worklet.js"></script>
<style>
html, body { margin: 0; padding: 0; }
#output {
    width: 100px;
    height: 100px;
    background-image: paint(worklet);
}
</style>
<body>
<div id="output"></div>

<script id="code" type="text/worklet">
registerPaint('worklet', class {
    paint(ctx, geom) {
         ctx.rotate(10 * Math.PI / 180);
         ctx.fillStyle = 'blue';
         ctx.fillRect(30, 10, 30, 30);
    }
});
</script>

<script>
    document.body.style.zoom = "300%";
    importPaintWorkletThenEndTest(document.getElementById('code').textContent);
</script>
</body>
</html>
